<?php 
namespace app\model;
use think\Model;

class WxActivityField extends Model
{	


    public static function getCommonIsCn($key){
        $list = [1=>'是',0=>'否'];
        return $list[$key];
    }

    public static function getCommonIsList(){
        $list = [1=>'是',0=>'否'];
        return $list;
    }

    public static function getTypeCn($key){
        $list = ['text'=>'单行输入框','number'=>'数字输入框','select'=>'下拉框','checkbox'=>'复选框','date'=>'日期','textarea'=>'多行文本','file'=>'单文件','files'=>'多文件'];
        return $list[$key];
    }

    public static function getTypeList(){
        $list = ['text'=>'单行输入框','number'=>'数字输入框','select'=>'下拉框','checkbox'=>'复选框','date'=>'日期','textarea'=>'多行文本','file'=>'单文件','files'=>'多文件'];
        return $list;
    }

    public static function getInitList(){
        $list = [
            ['field_sn'=>'truename','name'=>'姓名','type'=>'text','is_show'=>1,'is_must'=>1],
            ['field_sn'=>'mobile','name'=>'手机','type'=>'number','is_show'=>1,'is_must'=>0,'params'=>''],
        ];
        return $list;
    }
	
    
}


 ?>